<?php
/**
 * Nuwani-v2 Bot Framework
 *
 * This file is part of the Nuwani v2 Bot Framework, a simple set of PHP classes which allow
 * you to set-up and run your own bot. It features advanced, PHP-5.3 based syntax for
 * optimal performance and security.
 *
 * @author Peter Beverloo <peter@lvp-media.com>
 */

$aConfiguration = array
(
	/**
	 * Configuration: Networks
	 *
	 * The networks define the servers which can be used for which network. To allow
	 * automated load balancing for the IRC Network, multiple servers should be
	 * defined rather than juts one. Do NOT include round-robin in this! (irc.*)
	 */
	
	'Networks' => array
	(
		'GTANet' => array
		(
			'triton.nl.eu.gtanet.com:6667',
			'maple.nl.eu.gtanet.com:6667',
			'tractor.nj.us.gtanet.com:6667',
		)
	),
	
	/**
	 * Configuration: Bots
	 *
	 * Which bots should be automatically spawned? Each bot got their nickname,
	 * username and realname to adjust. Network specified the network to connect
	 * with, and Auto* describe commands and actions to activate on join.
	 *
	 * For the SSL key; use the false boolean to disable SSL support. Otherwise
	 * enter the port number (an integer!) to identify the SSL port.
	 */
	
	'Bots' => array
	(
		array
		(
			'Nickname' 	=> 'Sonium',
			'Username'	=> '',
			'Realname'	=> '',
			
			'Network'	=> 'GTANet',
			
			'BindIP'	=> null,
			'SSL'		=> 6697,
			
			'Slave'		=> false,
			'OnConnect'	=> array
			(
				// Channels to auto-join
				'Channels' => array
				(
					'#Nuwani'
				),
				
				// And commands executed on auto-join
				//'PRIVMSG NickServ :IDENTIFY yourPassword'
				
			),
			
			'QuitMessage'	=> 'Goodnight'
		),
	),
	
	/**
	 * Configuration: Owners
	 * Module: Evaluation
	 *
	 * This array is an configuration option specifically intended for the
	 * Evaluation module, and defines the owners for the bot which are
	 * allowed to evaluate direct PHP commands (using the prefix).
	 */
	
	'Owners' => array
	(
		'Prefix'	=> '..',
		
		array
		(
			'Username'	=> '*!peter@netstaff.irc.gtanet.com',
			'Password'	=> '098f6bcd4621d373cade4e832627b4f6',
			'Identified'	=> true
		),
		
		array
		(
			'Username'	=> '*!mrbondt@mrbondt.nl',
			'Password'	=> 'bbf9000ed31b33d085f4746ab1f8b81d',
			'Identified'	=> true
		),
	),
	
	/**
	 * Configuration: PriorityQueue
	 * 
	 * This simple array defines what modules should be called before any other
	 * module when processing events. This could be used for modules which ignore
	 * users or commands or even modules which track stuff. The order given in 
	 * this array will be maintained. The rest of the modules will be ordered by
	 * alphabet.
	 */
	
	'PriorityQueue' => array
	(
		
	),
	
	/**
	 * Configuration: MySQL
	 *
	 * These options define the MySQL connection information that various
	 * modules of this bot can use. The hostname, username, password
	 * and database directives are clear. The "Restart" option defines after
	 * how many seconds the connection should be restarted.
	 */
	
	'MySQL' => array
	(
		'hostname'	=> 'localhost',
		'username'	=> 'root',
		'password'	=> '',
		'database'	=> '',
		'restart'	=> 30
	),
	
	/**
	 * Configuration: ErrorHandling
	 *
	 * The error-handling level can be changed, which will effectively
	 * change the number of errors which get displayed on the output and
	 * the number of levels that get send to IRC. There are three
	 * common levels you can choose from:
	 *
	 *     ErrorExceptionHandler :: ERROR_OUTPUT_SILENT (deprecated)
	 *     ErrorExceptionHandler :: ERROR_OUTPUT_NORMAL (deprecated + warnings)
	 *     ErrorExceptionHandler :: ERROR_OUTPUT_ALL (deprecated, warnings + notices)
	 */
	
	'ErrorHandling' => ErrorExceptionHandler :: ERROR_OUTPUT_ALL,
	
	
	/**
	 * Configuration: SleepTimer
	 *
	 * The sleeptimer indicates the number of microseconds the bot should
	 * pause after every tick. While high values make the bot semi-slow in
	 * replying to messages, the CPU usage will be really low. With low values,
	 * the bot will respond more quickly, but CPU usage will increase
	 * as well. Adviced values are:
	 *
	 *    High performance:    20000
	 *    Normal performance:  40000
	 *    Al-Gore modus:       100000
	 *
	 * Using values lower than 5000 or higher than 1000000 is highly
	 * discouraged, as the CPU usage would either be really high or the
	 * bot would become really inaccurate (think about timers).
	 */
	
	'SleepTimer'	=> 40000,
	
);

?>